<?php

include_once 'common.php';

$id = isset($_GET['id']) ? $_GET['id'] : -1;

if ($id > 0) {
  $sql = "UPDATE `trex_records` SET `status` = -1 WHERE `number` = {$id}";
  $result = exec_sql($sql);
  output(['result' => $result]);
} else {
  output(['result' => null]);
}